package com.xneure.enging.bean;

import java.util.LinkedHashMap;
import java.util.Map;

import com.xneure.enging.event.Notify.NotifyType;
import com.xneure.utils.ObjectUtil;
import com.xneure.utils.bean.GUID;

public class WebEventResult {
	private Map<NotifyType, Map<String, Object>> property;
	private GUID id;
	
	public WebEventResult(GUID id) {
		property = new LinkedHashMap<NotifyType, Map<String, Object>>(10);
		this.id = id;
	}

	public void setProperty(NotifyType type, String key, Object val) {
		Map<String, Object> kv = property.get(type);
		if (ObjectUtil.isNull(kv)) {
			kv = new LinkedHashMap<String, Object>();
			property.put(type, kv);
		}
		kv.put(key, val);
	}

	public Map<NotifyType, Map<String, Object>> getProperty() {
		return property;
	}

	public GUID getId() {
		return id;
	}

}
